package cn.iocoder.yudao.module.crossborder.order.controller.admin.ordershipmentitem.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 跨境电商发货明细新增/修改 Request VO")
@Data
public class OrderShipmentItemSaveReqVO {

    @Schema(description = "发货明细编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "14428")
    private Long id;

    @Schema(description = "发货编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "13459")
    @NotNull(message = "发货编号不能为空")
    private Long shipmentId;

    @Schema(description = "发货单号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "发货单号不能为空")
    private String shipmentNo;

    @Schema(description = "订单项编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "12274")
    @NotNull(message = "订单项编号不能为空")
    private Long orderItemId;

    @Schema(description = "SKU编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "29248")
    @NotNull(message = "SKU编号不能为空")
    private Long skuId;

    @Schema(description = "SKU编码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "SKU编码不能为空")
    private String skuCode;

    @Schema(description = "商品名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "张三")
    @NotEmpty(message = "商品名称不能为空")
    private String productName;

    @Schema(description = "发货数量", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "发货数量不能为空")
    private BigDecimal quantity;

    @Schema(description = "重量（kg）")
    private BigDecimal weight;

    @Schema(description = "体积（立方米）")
    private BigDecimal volume;

    @Schema(description = "批次号")
    private String batchNo;

    @Schema(description = "序列号列表，逗号分隔")
    private String serialNos;

    @Schema(description = "库位编码")
    private String locationCode;

    @Schema(description = "包裹号")
    private String packageNo;

}